<?php

class BlogServiceTest implements BlogService {
	public function getTitle (){ 
  	}
	public function post ($Publishable){ 
  	}
	public function getItems (){ 
  	}
	public function PublishableItemsCount (){ 
  	}
	public function getTaggableItemsCount (){ 
  	}
	public function findItemsByAuthor ($auteur){ 
  	}
	public function getLatestItem (){ 
  	}
	public function findItemsByTags ($tag){ 
  	}
	public function findItemsByContent ($car){ 
  	}
	public function findItemsByTagsOrContent ($tagcar){ 
  	}

	public function getTitleTest (){
        return method_exists($this,'getTitle') ;
        }

	public function postTest (){
        return method_exists($this,'post') ;
        }

	public function getItemsTest (){
        return method_exists($this,'getItems') ;
        }

	public function PublishableItemsCountTest (){
        return method_exists($this,'PublishableItemsCount') ;
        }

	public function getTaggableItemsCountTest (){
        return method_exists($this,'getTaggableItemsCount') ;
    }
    

	public function findItemsByAuthorTest (){
        return method_exists($this,'findItemsByAuthor') ;
        }

	public function getLatestItemTest (){
        return method_exists($this,'getLatestItem') ;
    }
    

	public function findItemsByTagsTest (){
        return method_exists($this,'findItemsByTags') ;
    }        


	public function findItemsByContentTest (){
        return method_exists($this,'getItems') ;
    }        

	public function findItemsByTagsOrContentTest (){
        return method_exists($this,'getItems') ;
    }               

    public function __toString(){
        if ($this-> getTitleTest () and $this-> postTest() and $this-> getItemsTest () and $this-> PublishableItemsCountTest () and $this-> getTaggableItemsCountTest () and 
        $this-> findItemsByAuthorTest () and $this-> getLatestItemTest () and $this-> findItemsByTagsTest () and $this-> findItemsByContentTest () and $this-> findItemsByTagsOrContentTest()){
            ecrire_log("Test de BlogService  ... réusi \n", "Test");
            return "Test de BlogService  ... réusi \n";
        }else {
            ecrire_log("Test de BlogService  ... échoué \n", "Test");
            return "Test de BlogService  ... échoué \n";
        }
    }


}
